public class cat extends Animals implements ISwimming,IRunning{
    public cat (String name,String color,int age){
        super(name,age,color);
    }

    @Override
    public void eat() {
        System.out.println(name +"正在吃猫粮");
    }

    @Override
    public void run() {
        System.out.println("小猫正在跑");
    }

    @Override
    public void swim() {
        System.out.println("小猫正在游泳");
    }
}
